create-vanjs
Version:
🍦 Quick tool for scaffolding your first VanJS project
28 lines (24 loc) • 683 B
text/typescript
import van from "vanjs-core";
import { A } from "@vanjs/router";
import { Meta, Title } from "@vanjs/meta";
export const Page = () => {
const { div, h1, p, span } = van.tags;
Title("404 Error: Page Not found");
Meta({ name: "description", content: "Page Not Found Description" });
return [
div(
{ class: "flex h-screen" },
div(
{ class: "container mx-auto p-4" },
h1(
{ class: "text-5xl my-8" },
span({ class: "font-bold" }, "404"),
" / ",
"Page Not Found",
),
p({ class: "mb-4" }, "This is the about page"),
A({ class: "btn", href: "/" }, "Go Home"),
),
),
];
};